#Library file to import and convert MYOB items and sales to Python objects.
import csv

class MYOB:
    def __init__(self, p_file):
        self.output = []
        self.csv_in = csv.reader(p_file, delimiter="\t")
        
        self.group_sales()

    def group_sales(self):
        self.csv_in.next()       #Skip titles in first row
        temp = []
        
        for line in self.csv_in:
            if line[0]:
                temp.append(line)
            else:
                self.output.append(temp)
                temp = []
                
    def get_info(self):
        for line in self.output:
            line[0]